﻿namespace Carer.Data.Models
{
    using System;
    using System.ComponentModel.DataAnnotations;
    using System.Runtime.CompilerServices;
    using System.Web.Mvc;

    public class RegisterModel
    {

        private string string_0;

        private string string_1;

        private string string_2;

        private string string_3;

        public RegisterModel()
        {

        }

        [System.Web.Mvc.Compare("Password", ErrorMessage = "The password and confirmation password do not match."), Display(Name = "Confirm password"), DataType(DataType.Password)]
        public string ConfirmPassword
        {

            get
            {
                return this.string_3;
            }

            set
            {
                this.string_3 = value;
            }
        }

        [Required, Display(Name = "Email address"), DataType(DataType.EmailAddress)]
        public string Email
        {

            get
            {
                return this.string_1;
            }

            set
            {
                this.string_1 = value;
            }
        }

        [Display(Name = "Password"), Required, DataType(DataType.Password), StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
        public string Password
        {

            get
            {
                return this.string_2;
            }

            set
            {
                this.string_2 = value;
            }
        }

        [Display(Name = "User name"), Required]
        public string UserName
        {

            get
            {
                return this.string_0;
            }

            set
            {
                this.string_0 = value;
            }
        }
    }
}

